import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-14
 * Time:20:41
 */
public class main4 {
  public static void sqort(int[] array)
  {
      int num=array.length/2;
      int i=0;
      while(i<array.length)
      {
          int sum=0;
          for(int k=0;k< array.length;k++)
          {
              if(array[k]==array[i])
              {
                  sum++;
              }
          }
          if(sum>num)
          { System.out.println(array[i]);
              break;}
          i++;
      }

  }
  public static void main(String[] args)
  {
            int[] array=new int[]{1,2,2,2,2,1,1};
          sqort(array);
  }

}
